/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package de.editura.common.filefilter;

import java.io.File;
import java.io.FileFilter;

/**
 *
 * @author kschmidtner
 */
public class ImageFileFilter implements FileFilter {
    public boolean accept(File pathname) {
         if (pathname.getName().toLowerCase().endsWith(".jpg")) return true;
         if (pathname.getName().toLowerCase().endsWith(".jpeg")) return true;
         if (pathname.getName().toLowerCase().endsWith(".png")) return true;
         return false;
    }
}
